import Vue from "vue";
import Vuex from "vuex";
import user from './modules/user'

Vue.use(Vuex);

export default new Vuex.Store({
    modules: {
        user
      },
    state: {
        userInfo: {
            wxAvatar: 'path/to/avatar'
        }
    },
    getters: {
        userInfo: state => state.userInfo
    }
});
